package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the RECRUITAPPLY database table.
 * 
 */
@Entity
@NamedQuery(name="Recruitapply.findAll", query="SELECT r FROM Recruitapply r")
public class Recruitapply implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="RECRUITAPPLY_REAPPID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RECRUITAPPLY_REAPPID_GENERATOR")
	@Column(name="REAPP_ID")
	private long reappId;
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	@Column(name="REAPP_DEMANDDATE")
	private Timestamp reappDemanddate;

	@Column(name="REAPP_EXPLAIN")
	private String reappExplain;

	@Column(name="REAPP_PLAN")
	private BigDecimal reappPlan;

	//bi-directional many-to-one association to Organization
	@ManyToOne
	@JoinColumn(name="ORGANI_ID")
	private Organization organization;

	//bi-directional many-to-one association to Position
	@ManyToOne
	@JoinColumn(name="POSITION_ID")
	private Position position;

	public Recruitapply() {
	}

	public long getReappId() {
		return this.reappId;
	}

	public void setReappId(long reappId) {
		this.reappId = reappId;
	}

	public Timestamp getReappDemanddate() {
		return this.reappDemanddate;
	}

	public void setReappDemanddate(Timestamp reappDemanddate) {
		this.reappDemanddate = reappDemanddate;
	}

	public String getReappExplain() {
		return this.reappExplain;
	}

	public void setReappExplain(String reappExplain) {
		this.reappExplain = reappExplain;
	}

	public BigDecimal getReappPlan() {
		return this.reappPlan;
	}

	public void setReappPlan(BigDecimal reappPlan) {
		this.reappPlan = reappPlan;
	}

	public Organization getOrganization() {
		return this.organization;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}

	public Position getPosition() {
		return this.position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}

}